package thread.homework.problem1;

public class Flag {
    private boolean flag = false;

    private int flagNum = 0;

    public void changeFlagNum() {
        flagNum = (flagNum + 1) % 3;
    }

    public int getFlagNum() {
        return flagNum;
    }

    public void setFlagNum(int flagNum) {
        this.flagNum = flagNum;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }
}
